#ifndef MF_TEXTURE_H
#define MF_TEXTURE_H

#import "mfCore.h"

class mfTexture{
public:
	GLuint textureID;
	int width;
	int height;
	int type;
	int glType;
	int texType;
	int bpp;
	
	float tex_t, tex_u;   	// internal t,u coords (ie, 0.8 x 0.7)
	int tex_w, tex_h;		// internal w,h coords (ie, 512 x 256)
	
	GLfloat spriteTexCoords[8];
	
	mfTexture();
	~mfTexture();
	
	void loadImage(string filename);
	void loadImage(string filename, int type);
	void draw(float x, float y);
	void draw(float x, float y, float w, float h);
	void clear();
	
};

#endif